package com.blog.controller.user;

import com.blog.result.Result;
import com.blog.service.ExperienceService;
import com.blog.vo.ExperienceVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController("userExperienceController")
@RequestMapping("/user/Experience")
@Slf4j
public class ExperienceController {

    @Autowired
    private ExperienceService experienceService;


    @GetMapping("/listByUId/{uid}")
    public Result<List<ExperienceVO>> ListByUIdExperience(@PathVariable("uid") Long uid){
        log.info("根据用户ID查询工作经历.....");
        List<ExperienceVO> list = experienceService.listBySendUId(uid);
        return Result.success(list);
    }
}
